Cloudflare Workers
https://gyazo.com/d9ba9a98701f16efc678319dac221115
設定
code:wrangler.toml
name = "my-worker"
type = "webpack"
account_id = ""
workers_dev = true
route = ""
zone_id = ""
code:package.json
"scripts": {
"build": "webpack index.js"
},
code:webpack.config.js
module.exports = {
target: 'webworker'
}
プレビュー
$ npm install -g @cloudflare/wrangler -g
$ wrangler preview
デプロイ
$ wrangler publish
ログ
どこで見れるのだろう daiiz.icon